package com.foreveross.crawl.common.exception.self;

import com.foreveross.crawl.common.exception.BusinessException;
import com.foreveross.crawl.common.exception.enums.TaskStatusEnum;

/**
 * 系统繁忙异常
 * @author luofangyi
 *
 */
public class SystemBusyException extends BusinessException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4195621426925408825L;

	public SystemBusyException(String message){
		super(TaskStatusEnum.TASK_SYSTEM_BUSY.getStatus(), message);
	}
	
	public SystemBusyException(String message,Throwable rootCause){
		super(TaskStatusEnum.TASK_SYSTEM_BUSY.getStatus(), message,rootCause);
	}
	
	public SystemBusyException(String message, Exception ex){
		super(TaskStatusEnum.TASK_SYSTEM_BUSY.getStatus(), message,ex);
	}

	public SystemBusyException(Throwable rootCause){
		super(TaskStatusEnum.TASK_SYSTEM_BUSY.getStatus(), TaskStatusEnum.TASK_SYSTEM_BUSY.getRemark(), rootCause);
	}
	
	public SystemBusyException(){
		super(TaskStatusEnum.TASK_SYSTEM_BUSY.getStatus(), TaskStatusEnum.TASK_SYSTEM_BUSY.getRemark());
	}
}
